package com.ruoyi.personal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.personal.mapper.CriminalResponsibilityMapper;
import com.ruoyi.personal.domain.CriminalResponsibility;
import com.ruoyi.personal.service.ICriminalResponsibilityService;

/**
 * 刑事责任，用于记录刑事责任的相关信息Service业务层处理
 * 
 * @author qjp
 * @date 2024-09-18
 */
@Service
public class CriminalResponsibilityServiceImpl implements ICriminalResponsibilityService 
{
    @Autowired
    private CriminalResponsibilityMapper criminalResponsibilityMapper;

    /**
     * 查询刑事责任，用于记录刑事责任的相关信息
     * 
     * @param Id 刑事责任，用于记录刑事责任的相关信息主键
     * @return 刑事责任，用于记录刑事责任的相关信息
     */
    @Override
    public CriminalResponsibility selectCriminalResponsibilityById(Long Id)
    {
        return criminalResponsibilityMapper.selectCriminalResponsibilityById(Id);
    }

    /**
     * 查询刑事责任，用于记录刑事责任的相关信息列表
     * 
     * @param criminalResponsibility 刑事责任，用于记录刑事责任的相关信息
     * @return 刑事责任，用于记录刑事责任的相关信息
     */
    @Override
    public List<CriminalResponsibility> selectCriminalResponsibilityList(CriminalResponsibility criminalResponsibility)
    {
        return criminalResponsibilityMapper.selectCriminalResponsibilityList(criminalResponsibility);
    }

    /**
     * 新增刑事责任，用于记录刑事责任的相关信息
     * 
     * @param criminalResponsibility 刑事责任，用于记录刑事责任的相关信息
     * @return 结果
     */
    @Override
    public int insertCriminalResponsibility(CriminalResponsibility criminalResponsibility)
    {
        return criminalResponsibilityMapper.insertCriminalResponsibility(criminalResponsibility);
    }

    /**
     * 修改刑事责任，用于记录刑事责任的相关信息
     * 
     * @param criminalResponsibility 刑事责任，用于记录刑事责任的相关信息
     * @return 结果
     */
    @Override
    public int updateCriminalResponsibility(CriminalResponsibility criminalResponsibility)
    {
        return criminalResponsibilityMapper.updateCriminalResponsibility(criminalResponsibility);
    }

    /**
     * 批量删除刑事责任，用于记录刑事责任的相关信息
     * 
     * @param Ids 需要删除的刑事责任，用于记录刑事责任的相关信息主键
     * @return 结果
     */
    @Override
    public int deleteCriminalResponsibilityByIds(Long[] Ids)
    {
        return criminalResponsibilityMapper.deleteCriminalResponsibilityByIds(Ids);
    }

    /**
     * 删除刑事责任，用于记录刑事责任的相关信息信息
     * 
     * @param Id 刑事责任，用于记录刑事责任的相关信息主键
     * @return 结果
     */
    @Override
    public int deleteCriminalResponsibilityById(Long Id)
    {
        return criminalResponsibilityMapper.deleteCriminalResponsibilityById(Id);
    }
}
